<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>商品信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品专区：</label>
			<div class="layui-input-inline">
				<select name="orderStatus" id="orderStatus"  lay-verify="required" lay-filter="select1">
                                    <option selected="selected" value="703">零售专区</option>
                                    <option value="701">体验专区</option>
                                    <option value="702">兑换专区</option>
                                    <option value="702">活动专区</option>
                                </select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品分类：</label>
			<div class="layui-input-inline" style="width:90px;">
				<select name="quiz1">
					<option value="">中外名酒</option>
				</select>
			</div>
			<div class="layui-input-inline" style="width:90px;">
				<select name="quiz2">
					<option value="">白酒</option>
				</select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品系列：</label>
			<div class="layui-input-inline">
				<select name="orderStatus" id="orderStatus"  lay-verify="required" lay-filter="select1">
                    <option selected="selected" value="703">商品系列</option>
                    <option value="701">美友系列</option>
                </select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品名称：</label>
			<div class="layui-input-inline">
				<input type="text" name="detail_addr" id="detail_addr" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品编号：</label>
			<div class="layui-input-inline">
				<input type="text" name="detail_addr" id="detail_addr" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">是否上架：</label>
			<div class="layui-input-block" style="width:190px;">
				<input type="checkbox" name="like[write]" title="上架" checked="">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品单位：</label>
			<div class="layui-input-inline">
				<input type="text" name="detail_addr" id="detail_addr" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品标题：</label>
			<div class="layui-input-inline" style="width:504px;">
				<input type="text" name="detail_addr" id="detail_addr" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">供 货 商：</label>
			<div class="layui-input-inline">
				<input type="text" name="detail_addr" id="detail_addr" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品描述：</label>
			<div class="layui-input-inline" style="width:504px;">
				<input type="text" name="detail_addr" id="detail_addr" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品主图：</label>
			<div class="layui-input-inline" style="width:190px;">
								<div class="layui-upload">
                                    <button type="button" class="layui-btn" id="test02">上传主图</button>
                                    <input type="hidden" class="proImg" id="proImg" name="proImg" value="proImg"/>
                                    <div class="layui-upload-list  one-img">
                                        <img class="layui-upload-img" id="demo102" width="100px" height="100px">
                                        <p id="demo1Text02"></p>
                                    </div>
                                </div>

			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label" style="width:70px;">商品组图：</label>
			<div class="layui-input-inline" style="width:504px;">
								<div class="layui-upload">
                                    <button type="button" class="layui-btn" id="test02">上传组图</button>
                                    <input type="hidden" class="proImg" id="proImg" name="proImg" value="proImg"/>
                                    <div class="layui-upload-list  one-img">
                                        <img class="layui-upload-img" id="demo102" width="100px" height="100px">
                                        <p id="demo1Text02"></p>
                                    </div>
                                </div>

			</div>
		</div>
  </div>
</div>

<script src="/layui/layui.js"></script>
<script>
    layui.config({
        base: '/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
    })
	
	function WinOpenShow(u,t,w,h) {
        layer.open({
            type: 2
            , title: t
            , content: u
            , area: [w+'px', h+'px']
        });
    }
	
	function WinOpenAdd(u,t) {
        layer.open({
            type: 2
            , title: t
            , content: u
            , area: ['500px', '700px']
            , btn: ['确定', '取消']
            , yes: function (index, layero) {
                debugger;
                /*
				var body = layer.getChildFrame('body', index); //得到iframe页的body内容
                var userName = body.find("#userName").val();
                var phone = body.find("#phone").val();
                var cardId = body.find("#cardId").val();
                var recommend = body.find("#recommend").val();
                var sort = body.find("#sort").val();

                var addUrl="/user/addUser?userName="+userName+"&phone="+phone+"&cardId="+cardId+"&recommend="+recommend+"&sort="+sort;
                alert(addUrl);
                // var htmlobj=$.ajax({url:addUrl,async:false});
                alert(htmlobj);
                //数据刷新
                var demoReload = $('#demoReload');
                //执行重载
                table.reload('testReload', {
                });
*/
                layer.close(index); //关闭弹层
            }
        });
    }
	
</script>
</body>
</html>